<script lang="ts" setup>
import {useRoute, useRouter} from 'vue-router'
import {  onMounted,} from 'vue';


const router = useRouter()
const route = useRoute()
function goHome() {
	router.push({
		path:"/",
		query:{
			filename:"MMC325435"
		}
	})
}

onMounted(() => {
	console.log(route.query,"dsf")
})
</script>

<template>

	<div class="flex h-full dark:bg-neutral-800">
		<div class="px-4 m-auto space-y-4 text-center max-[400px]">
			<header class="space-y-2">
				<h2 class="text-2xl font-bold text-center text-slate-800 dark:text-neutral-200">
					500
				</h2>
				<p class="text-base text-center text-slate-500 dark:text-slate-500">
					Server error
				</p>
				<div class="flex items-center justify-center text-center">
					<Icon500 class="w-[300px]"/>
				</div>
			</header>
			<NButton type="primary" @click="goHome">
				进行分析
			</NButton>
		</div>
	</div>
</template>
